//
//  JSQMessagesCollectionViewVoiceCellIncoming.m
//  SkyHospital
//
//  Created by C_HAO on 15/4/21.
//  Copyright (c) 2015年 GrayWang. All rights reserved.
//

#import "JSQMessagesCollectionViewCellVoiceIncoming.h"
#import "UIImage+JSQMessages.h"
#import "JSQMessagesMediaViewBubbleImageMasker.h"

@implementation JSQMessagesCollectionViewCellVoiceIncoming

- (void)awakeFromNib {
    [super awakeFromNib];
    self.messageBubbleTopLabel.textAlignment = NSTextAlignmentLeft;
    self.cellBottomLabel.textAlignment = NSTextAlignmentLeft;

    [JSQMessagesMediaViewBubbleImageMasker applyBubbleImageMaskToMediaView:self.voiceImageView isOutgoing:NO];

    [self.voiceImageView setAnimationImages:@[[UIImage jsq_defaultRight1AudioImage], [UIImage jsq_defaultRight2AudioImage], [UIImage jsq_defaultRightAudioImage]]];
    self.voiceImageView.image = [UIImage jsq_defaultRightAudioImage];
}

@end
